Skip to content

Instantly share code, notes, and snippets.

@kibotu
kibotu / clean.sh
Last active November 11, 2026 13:14
macOS App Developer Cleanup — allowlist-based, dry-run by default, agent-friendly.
#!/usr/bin/env python3
"""macOS Developer Cleanup — allowlist-based, dry-run by default, agent-friendly.
Usage:
dev-cleanup.sh # dry-run plan of the safe default sweep
dev-cleanup.sh --apply # interactive apply (asks before deleting)
dev-cleanup.sh --apply --yes # non-interactive apply (agent mode)
dev-cleanup.sh --all --json # machine-readable plan
dev-cleanup.sh --all --apply --yes --json --report cleanup.json

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@mikeslattery
mikeslattery / .idea-lazy.vim
Last active November 11, 2026 13:11
LazyVim mappings for Jetbrains IDEs
" ~/.idea-lazy.vim
" LazyVim mappings for Jetbrains IDEs
" This has been replaced by https://github.com/cufarvid/lazy-idea
" Use it instead.
" Required plugins. https://plugins.jetbrains.com/bundles/7-ideavim-bundle
" IDEAVim
" Which-Key
@kibotu
kibotu / cleanup-runtimes-simulators.sh
Created November 11, 2026 09:24
Safely remove selected iOS Simulator runtimes and devices orphaned by those removals.
#!/usr/bin/env bash
set -Eeo pipefail
# Safely remove selected iOS Simulator runtimes and devices orphaned
# by those removals.
#
# Requires macOS, Xcode Command Line Tools, and Python 3.
# ------------------------------------------------------------
# Colors
@kjmph
kjmph / A_UUID_v7_for_Postgres.sql
Last active November 11, 2026 13:01
Postgres PL/pgSQL function for UUID v7 and a bonus custom UUID v8 to support microsecond precision as well. Read more here: https://datatracker.ietf.org/doc/rfc9562/
-- Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/
create or replace function uuid_generate_v7()
returns uuid
as $$
begin
-- use random v4 uuid as starting point (which has the same variant we need)
-- then overlay timestamp
-- then set version 7 by flipping the 2 and 1 bit in the version 4 string
return encode(
@orepras
orepras / bahasa-indonesia-plain.md
Last active November 11, 2026 13:12
An agent skill for writing in Bahasa Indonesia plain style and RASA framework

name: bahasa-indonesia-plain description: > Tulis dan edit teks antarmuka, panduan, dokumentasi, atau konten apa pun dalam Bahasa Indonesia yang lugas, inklusif, dan ramah semua orang, menggunakan prinsip bahasa polos (plain language), EYD, desain trauma-informed, aksesibilitas kognitif, dan framework RASA (Ritmis, Akurat, Sarat Makna, Alami) sebagai lensa evaluasi kualitas tulisan. Gunakan skill ini saat menulis UI copy, microcopy, laporan, panduan pengguna, komunikasi layanan publik, atau teks apa pun yang harus dipahami siapa saja sejak pertama kali membacanya.

@mscharhag
mscharhag / Java8DateTimeExamples.java
Created February 24, 2014 19:53
Examples for using the Java 8 Date and Time API (JSR 310)
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalAdjusters;
import java.util.*;
import static java.time.temporal.TemporalAdjusters.*;
public class Java8DateTimeExamples {
@wojteklu
wojteklu / clean_code.md
Last active November 11, 2026 12:50
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules